<?php
	require_once(realpath(dirname(__FILE__)) . "/../pre.php");
	require_once(realpath(dirname(__FILE__)) . "/../auth.php");

require_once(realpath(dirname(__FILE__)) . "/../../fonctions/divers.php");
?>
<?php if(! est_autorise("acces_catalogue")) exit; ?>
<?php
require_once(realpath(dirname(__FILE__)) . "/../../classes/Produit.class.php");
header('Content-Type: text/html; charset=utf-8');
$ref = $_GET["ref_c"];

$produit = new Produit();
if($produit->charger($ref)){
	?>
		<div class="confirmation_ref"><img src="gfx/interdiction.png" /></div>
		<input type="hidden" id="confirm_ref" value="0">
	<?php
}
else{
	?>
		<div class="confirmation_ref"><img src="gfx/validation.png" /></div>
		<input type="hidden" id="confirm_ref" value="1">
	<?php
}

?>